<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tags/mooral-html.tld" prefix="mooralHtml" %>

<html:xhtml/>
<mooralHtml:form  action="/userUpdate"  onsubmit="return validateUserEditForm(this);">


	<table>
		

		<tr>
			<td>
				<bean:message key="user.edit.label.email"/>
			</td>
			<td>
				<html:text property="user.email" readonly="true"/>
			</td>
		</tr>
		<tr>
			<td>
				<bean:message key="user.edit.label.password"/>
			</td>
			<td>
				<html:password property="user.password"/>
			</td>
		</tr>
		<tr>
			<td>
				<bean:message key="user.edit.label.passwordConfirm"/>
			</td>
			<td>
				<html:password property="user.passwordConfirm"/>
			</td>
		</tr>
		<tr>
			<td>
				<bean:message key="user.edit.label.categories"/>
			</td>
			<td>
	            <html:select property="categoriesSelected" size="10" multiple="true">
	              <html:optionsCollection property="categories" label="name" value="id"/>
	            </html:select>
			</td>
		</tr>
		<tr>
			<td>
				<bean:message key="user.edit.label.periodicity"/>
			</td>
			<td>
	            <html:select property="user.periodicity" size="1">
	              <html:option value="D"><bean:message key="user.edit.label.periodicity.daily"/></html:option>
	              <html:option value="W"><bean:message key="user.edit.label.periodicity.weekly"/></html:option>
	              <html:option value="M"><bean:message key="user.edit.label.periodicity.monthly"/></html:option>
	            </html:select>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<html:submit><bean:message key="user.edit.button.save.label"/></html:submit>
			</td>
		</tr>
	</table>
	
	<html:javascript formName="userEditForm"/>

</mooralHtml:form>
